package com.shinemo.mpush.alloc.domain;

import java.io.Serializable;
import java.util.Map;

/**
 * Created by ThinkPad on 2017/9/23.
 */
public class NotificationDO implements Serializable{
    private static final long serialVersionUID = 7610944035540946725L;
    public String msgId;
    public String title;
    public String content;
    public Integer nid; //主要用于聚合通知，非必填
    public Byte flags; //特性字段。 0x01:声音  0x02:震动  0x03:闪灯
    public String largeIcon; // 大图标
    public String ticker; //和title一样
    public Integer number;

    public Map<String, String> extras;

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getNid() {
        return nid;
    }

    public void setNid(Integer nid) {
        this.nid = nid;
    }

    public Byte getFlags() {
        return flags;
    }

    public void setFlags(Byte flags) {
        this.flags = flags;
    }

    public String getLargeIcon() {
        return largeIcon;
    }

    public void setLargeIcon(String largeIcon) {
        this.largeIcon = largeIcon;
    }

    public String getTicker() {
        return ticker;
    }

    public void setTicker(String ticker) {
        this.ticker = ticker;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Map<String, String> getExtras() {
        return extras;
    }

    public void setExtras(Map<String, String> extras) {
        this.extras = extras;
    }

    @Override
    public String toString() {
        return "{" +
                "msgId='" + msgId + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", nid=" + nid +
                ", flags=" + flags +
                ", largeIcon='" + largeIcon + '\'' +
                ", ticker='" + ticker + '\'' +
                ", number=" + number +
                ", extras=" + extras +
                '}';
    }
}
